<template>
    <div style="text-align:center">
        <UE ref="ues" v-model="introduce" aria-readonly="true" v-if="checkPermission('112026')"></UE>
        <Button  type="primary"  @click="set_introduce()" style="width:10%;margin-top:50px;font-size:17px;" v-if="checkPermission('112026')">保存</Button>
    </div>
</template>

<script>
import UE from '@/common/components/UE';
import parent from '../Parent';
export default {
    extends:parent,
    components: {
        UE
    },
    data () {  
        return {
            introduce: ""
        }
    },
    methods: {
        set_introduce:function(){
            this.api.post("free_value/set", {keyvalues: {introduce:escape(this.$refs.ues.getUEContent())}}, res => {
                this.$CustomMessage.success("编辑成功");
            });
        }
    },
    created() {
        this.api.post("free_value/get", {key:"introduce"}, res => {
            this.introduce = unescape(res.data.value);
        });
    }  
}
</script>
